#pragma once

#include <iostream>
#include "ObjectManager.h"


extern "C"{
#include "lua.h"
#include "lualib.h"
#include "lauxlib.h"
}

class LuaHandler
{
private:
	ObjectManager* om;
    lua_State *L;
    bool Loaded;

public:
    LuaHandler(std::string codeFile, ObjectManager* _om=NULL);
    ~LuaHandler();
    void Run();
	void CallLuaFunction(const char* functionName);

};